:root {
    --primary-color: #3f51b5;
    --accent-color: #448AFF;
    --background-color: #FF4081;
    --default-transation: ease-in-out .2s
}

select,
textarea,
input {
    outline: none;
    border: none;
    width: 100%;
    font-size: 1em;
    border-bottom: solid 1px #aaa;
    padding: 0 4px;
    transition: var(--default-transation);
    background: linear-gradient(var(--background-color), var(--background-color)) 2px 10px no-repeat;
    background-position: 50% 100%;
    background-size: 0 1px;
    box-sizing: border-box;
    resize: none;
    font-family: Roboto, Noto, Helvetica, Arial, sans-serif;
    min-height: 32px;
    line-height: 32px;
    height: 32px;
}

select[disabled],
textarea[disabled],
input[disabled] {
    border-bottom: dashed 1px #bbb !important;
    background: transparent;
}

input[type="file"] {
    margin-left: 32px;
    width: calc(100% - 32px);
}

input::before {
    content: "";
    background: #999;
    clip-path: polygon(0 8%, 36% 8%, 40% 20%, 100% 20%, 100% 92%, 0 92%);
    width: 16px;
    height: 16px;
    position: absolute;
    margin: 8px 8px;
    display: block;
    margin-left: -32px;
}


input[type="file"]:active::file-selector-button,
input[type="file"]:focus::file-selector-button {
    width: 32px;
    height: 32px;
    margin-top: 0px;
    margin-left: -40px;
}


input[type="file"]::file-selector-button {
    border: none;
    text-indent: -100px;
    width: 0px;
    height: 0px;
    border-radius: 50%;
    position: absolute;
    margin-left: -24px;
    margin-top: 16px;
    background: rgba(0 0 0 / .12);
    transition: ease-in-out .2s;
    z-index: 1;
    display: block;
    padding: 0;
}

select:focus,
textarea:focus,
input:focus,
select:active,
textarea:active,
input:active {
    border-color: var(--background-color);
    background-position: 0 100%;
    background-size: 100% 1px;
}

button {
    padding: 0px 12px;
    box-sizing: border-box;
    height: 32px;
    border: none;
    outline: none;
    background: transparent;
    transition: ease-in-out .2s;
    border-radius: 2px;
    color: var(--primary-color);
    font-size: 0.9em;
    min-width: 56px;
    width: max-content;
}